package com.erp.gather.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * erp产品统一下架业务对象 erp_product_unified_takedown
 *
 * @author erp
 * @date 2023-06-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpProductUnifiedTakedownBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 下架原因
     */
    @NotBlank(message = "下架原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String takedownReason;

    /**
     * 下架商品
     */
    private Long collectProductId;

    @NotNull(message = "下架商品不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long aeProductId;

    /**
     * 是否生效
     */
//    @NotNull(message = "是否生效不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isEffective;

    /**
     * 是已执行
     */
//    @NotNull(message = "是已执行不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isExecute;

    /**
     * 原因类型 1-侵权 2-语言敏感
     */
//    @NotNull(message = "原因类型 1-侵权 2-语言敏感不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
